package com.bawei.fuxi.ui.zhibo;

import com.bawei.fuxi.R;
import com.bawei.fuxi.base.mvp.BaseView;
import com.bawei.fuxi.entity.MessageEntity;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import androidx.annotation.NonNull;

public class MessageAdapter extends BaseQuickAdapter<MessageEntity, BaseViewHolder> {
    public MessageAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder baseViewHolder, MessageEntity messageEntity) {
        baseViewHolder.setText(R.id.tv_username,messageEntity.getUsername()+":");
        baseViewHolder.setText(R.id.tv_message,messageEntity.getText()+"");
    }
}
